<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/sapar.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/manage.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/bootstrap.min.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/jquery.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/sapar.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/WdatePicker.js"></script>
<script type="text/javascript">
	function printit() {
		if (confirm('确认打印吗？')) {
			document.getElementById('butn').style.display = "none";//隐藏
			window.print();//打印
			document.getElementById('butn').style.display = "inline";//显示
		}
	}
</script>
<title>入库单统计表</title>
</head>
<body>
	<div id="saper-container">
		<div id="saper-hd"></div>
		<div id="saper-bd">
			<div class="subfiled clearfix">
				<h2>入库单统计表</h2>
			</div>
			<div class="subfiled-content">
				<div class="tab-container" data-trigger="click">
					<div class="tab-content">
						<div class="tab-content-item">
							<div class="kv-item clearfix">
								<a
									href="${pageContext.request.contextPath }/getIntoproductListTOExcel.do"
									class="btn btn-primary">导出excel</a>
							</div>
							<!--表格开始-->
							<div class="table">
								<!--表格具体内容-->
								<div class="table-box">
									<table>
										<thead>
											<tr>
												<th width="20px" height="20px"><input type="checkbox"
													onchange="allCheck" /></th>
												<th>序号</th>
												<th>入库单号</th>
												<th>产品编号</th>
												<th>供应商编号</th>
												<th>支付类型</th>
												<th>进货时间</th>
												<th>录单人</th>
												<th>数量</th>
												<th>注释</th>
												<th>所属店铺</th>
												<th>状态</th>
											</tr>
										</thead>
										<tbody>
											<c:forEach items="${intoproductList}" var="lists"
												varStatus="sta">
												<tr
													${sta.index%2!=0?'style="background-color: #EFF6FA;"':''}>
													<td width="20px" height="20px"><input type="checkbox"
														name="idbox" id="idbox" value="${lists.intoproduct_id}" /></td>
													<td>${sta.index+1}</td>
													<td>${lists.intoproduct_id}</td>
													<td>${lists.product_id}</td>
													<td>${lists.supplier_id}</td>
													<td>${lists.pay_type}</td>
													<td><fmt:formatDate value="${lists.intoproduct_time}" /></td>
													<td>${lists.employee_id}</td>
													<td>${lists.intoproduct_num}</td>
													<td>${lists.intoproduct_note}</td>
													<td>${lists.store_id}</td>
													<td><c:if test="${lists.intoproduct_status eq 0}">启用</c:if>
														<c:if test="${lists.intoproduct_status eq 1}">禁用</c:if></td>
												</tr>
											</c:forEach>
											<tr>
												<td colspan="13">
													<div align="right">
														<span>共${pages.totalCount }条记录${pages.currentPageNo}/${pages.totalPageCount }页</span>
														<c:if test="${pages.currentPageNo > 1}">
															<a href="javascript:page_nav(document.forms[0],1);">首页</a>
															<a
																href="javascript:page_nav(document.forms[0],${pages.currentPageNo-1});">上一页</a>
														</c:if>
														<c:if
															test="${pages.currentPageNo < pages.totalPageCount }">
															<a
																href="javascript:page_nav(document.forms[0],${pages.currentPageNo+1 });">下一页</a>
															<a
																href="javascript:page_nav(document.forms[0],${pages.totalPageCount });">最后一页</a>
														</c:if>
													</div>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
							<!--表格结束-->
						</div>
					</div>
				</div>
			</div>
			<%-- <div class="subfiled-content">
				<div class="tab-container" data-trigger="click">
					<div class="tab-content">
						<div class="tab-content-item">
							<div class="kv-item clearfix">
								<div class="kv-item">
									<a href="javascript:;" class="btn btn-primary">导出excel</a> <a
										href="javascript:;" class="btn btn-primary" id="butn"
										onclick="printit();">打印</a>
								</div>
							</div>
							<!--表格开始-->
							<div class="table">
								<!--表格具体内容-->
								<div class="table-box">
									<!--表格开始-->
									<div class="table">
										<!--表格具体内容-->
										<div class="table-box">
											<table>
												<thead>
													<tr>
														<th>入库单号</th>
														<th>产品编号</th>
														<th>供应商编号</th>
														<th>支付类型</th>
														<th>进货时间</th>
														<th>录单人</th>
														<th>数量</th>
														<th>注释</th>
														<th>所属店铺</th>
														<th>状态</th>
													</tr>
												</thead>
												<tbody>
													<c:forEach items="${intoproductList}" var="lists"
														varStatus="sta">
														<tr
															${sta.index%2!=0?'style="background-color: #EFF6FA;"':''}>
															<td width="20px" height="20px"><input
																type="checkbox" name="idbox" id="idbox"
																value="${lists.intoproduct_id}" /></td>
															<td>${sta.index+1}</td>
															<td>${lists.intoproduct_id}</td>
															<td>${lists.product_id}</td>
															<td>${lists.supplier_id}</td>
															<td>${lists.pay_type}</td>
															<td><fmt:formatDate
																	value="${lists.intoproduct_time}" /></td>
															<td>${lists.employee_id}</td>
															<td>${lists.intoproduct_num}</td>
															<td>${lists.intoproduct_note}</td>
															<td>${lists.store_id}</td>
															<td><c:if test="${lists.intoproduct_status eq 0}">启用</c:if>
																<c:if test="${lists.intoproduct_status eq 1}">禁用</c:if></td>
														</tr>
													</c:forEach>
												</tbody>
											</table>
										</div>
									</div>
									<!--表格结束-->
								</div>
							</div>
							<!--表格结束-->
						</div>
					</div>
				</div>
			</div> --%>
		</div>
		<div id="saper-ft"></div>
	</div>

	<script type="text/javascript"
		src='${pageContext.request.contextPath }/statics/js/jquery-1.12.4.js'></script>
	<script type="text/javascript"
		src='${pageContext.request.contextPath }/statics/js/bootstrap.js'></script>
	<script type="text/javascript">
		$('select').iSelect();
	</script>
</body>
</html>